﻿using CommunityToolkit.Mvvm.ComponentModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;
using ZoneLine.Views;

namespace ZoneLine.Models
{
    [Index(nameof(QOP010StationResult) + "index_1", nameof(AbsScanCode), IsUnique = false)]
    public class QOP010StationResult : StationResultBase
    {

        private string _stationCode;
        [DgColumnAttr("工位号")]
        public string StationCode
        {
            get { return _stationCode; }
            set => SetProperty(ref _stationCode, value);
        }


        private string _bushScanCode;
        [DgColumnAttr("衬套批次码")]
        public string BushScanCode
        {
            get { return _bushScanCode; }
            set => SetProperty(ref _bushScanCode, value);
        }

        private string _partType;
        [DgColumnAttr("产品型号")]
        public string PartType
        {
            get { return _partType; }
            set => SetProperty(ref _partType, value);
        }

        private string _result;
        [DgColumnAttr("结果")]
        public string Result
        {
            get { return _result; }
            set => SetProperty(ref _result, value);
        }

        private float _pressPosition;
        [DgColumnAttr("压机位置")]
        public float PressPosition
        {
            get { return _pressPosition; }
            set => SetProperty(ref _pressPosition, value);
        }

        private float _pressForce;
        [DgColumnAttr("压机压力")]
        public float PressForce
        {
            get { return _pressForce; }
            set => SetProperty(ref _pressForce, value);
        }

        private float _cycleTime;
        [DgColumnAttr("循环时间")]
        public float CycleTime
        {
            get { return _cycleTime; }
            set => SetProperty(ref _cycleTime, value);
        }

        private string _bushScanCode2;
        /// <summary>
        /// 衬套批次码2
        /// addr:150
        /// </summary>
        [DgColumnAttr("衬套批次码2")]
        public string BushScanCode2
        {
            get { return _bushScanCode2; }
            set { _bushScanCode2 = value; }
        }

    }
}
